//
//  RealTimeModel.m
//  mendianjieke
//
//  Created by 响当当 on 8/5/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "RealTimeModel.h"

@implementation RealTimeModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.expression = IFNULL(dic[@"expression"], [NSNumber new]);
        self.customerType = IFNULL(dic[@"customerType"],  [NSNumber new]);
        self.serveState = IFNULL(dic[@"serveState"], [NSNumber new]);
        self.customerId = IFNULL(dic[@"customerId"], @"");
        self.summary = dic[@"summary"];
        self.photo = IFNULL(dic[@"photo"], @"");
        self.serveTime = IFNULL(dic[@"serveTime"], [NSNumber new]);
        self.waiterName = IFNULL(dic[@"waiterName"], @"");

    }
    return self;
}
@end
